home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / danix201.zip / LS.1 < prev    next >
Text File  |  1994-01-17  |  3KB  |  74 lines

  1. LS(1)                Danix Utilities                LS(1)
  2.  
  3. NAME
  4.     ls - list a directory
  5.  
  6. SYNOPSIS
  7.     ls [-aCdFlprRstx1] files ...
  8.  
  9. DESCRIPTION
  10.     Each file in the file list which is not a directory is listed.  For
  11.     each directory given in the file list, it prints the contents of that
  12.     directory.  If the file list is empty, the contents of the current
  13.     directory is displayed.  By default, files are listed sorted in
  14.     alphabetical order.  Hidden files are not listed by default.
  15.  
  16.     ls supports color output to the console by defining the environment
  17.     variable COLORLS.  If the COLORLS environment variable is not defined,
  18.     ls checks for the variable COLORDIR.  The value should be a colon
  19.     separated list of file specifiers and associated colors.  The file
  20.     specifier is a list of extentions (bat, exe) or file attributes (dirs,
  21.     system, hidden, archive, rdonly) separated by spaces.  Colors are one
  22.     of (black, blue, green, cyan, red, magenta, brown, LIGHTGRAY, DARKGRAY,
  23.     LIGHTBLUE, LIGHTGREEN, LIGHTCYAN, LIGHTRED, LIGHTMAGENTA, YELLOW,
  24.     WHITE). Separate colors may be defined for foreground and background
  25.     using the syntax 'foreground on background'.  The colors in capital
  26.     letters may only be used for the foreground.  The foreground may be
  27.     made to blink by adding the word 'blink' before it, and can be made
  28.     bright by adding 'bright' before it.  All words are case insensitive.
  29.     An example would be:
  30.  
  31.     set COLORLS=com exe:blink bright yellow;dirs:red;c:white on blue
  32.  
  33.     -a Include hidden files in the list.
  34.  
  35.     -C Force multi-column output.  Entries will be sorted down each
  36.        column.  This is the default if output is to a terminal.
  37.  
  38.         -d Don't list contents of directory arguments.
  39.  
  40.     -F Append the path separator to directories and add a '*' after
  41.            executable files.
  42.  
  43.     -l List files in long format.  For each file, the mode, size
  44.        in bytes and modification time are listed.  Modes listed are:
  45.         d - file is a directory
  46.         s - file is a system file
  47.         h - file is a hidden file
  48.         r - file is read only
  49.         a - archive bit is set
  50.  
  51.     -p Append the path separator to files which are directories.
  52.  
  53.     -r Reverse the order of sort to get reverse alphabetic or oldest
  54.        first (if -t is specified).
  55.  
  56.     -R Recursively list subdirectories encountered.
  57.  
  58.     -s Give the size in blocks of each file.
  59.  
  60.     -t Sort by modification time instead of alphabetically.  Files
  61.        are listed newest to oldest.
  62.  
  63.     -x Multi-column output with entries sorted across the rows.
  64.  
  65.     -1 List files in a single column.  This is the default if output
  66.        is not to a terminal.
  67.  
  68. EXAMPLES
  69.     ls \utils - list the files in the \utils directory
  70.     ls -R \utils - list all files in the \utils directory and
  71.         recursively list all subdirectories encountered
  72.     ls \u*.* - list all files in the root directory which begin
  73.         with u.
  74.